ABAP-Damodhier-Surya - 2016-04-18 - 26605 - Spec - Optimize the CREATE IDOCs process (Jeff by 2016-05-27) #OrderEntry #EDISD #US #EMEA #abapidoc

SPECIFICATIONS

26605-Spec-Optimize the CREATE IDOCs process

Purpose


Optimize the CREATE IDOCs process

Admin Info


Purpose
Optimize the CREATE IDOCs process
Requested By
Jeffrey Mau
Spec Created By
Damodhier/Surya Basa
Spec Created Date
04/18/2016
Spec QA by
Surya Basa
Objects
ZSD_IBM_EDI_JOB
ZSD_IBM_EDI_JOB_VAR
Document Status
WIP


Estimates



Sl.No
Activity
Estimation in Hours
1
Research
04 + 32
2
Documentation
04 + 04
3
Development/ Config
16 +
4
Unit test in DEV
04 +
5
Unit test in QUA
04 +
6
Other activity


TOTAL
32 +

References


Prior Tickets

[Provide links of prior associated Spec / Break Fix BOSS document(s)]



Documents

[Attach any document(s) received for the requirement(s)]
IBM Capture.JPG


Spec Changes

[List the changes made to program after the approval of the original requirement along with the Date on which the change request was received and the name of the initiator]

Sl.
Change Details
Requested By
Requested On
Notes if any
1
Stop creation of multiple IDOCs resulting in duplicate orders;
Fix issue caused due to bad data on the files
Filip
04/21/2016

2
Rename the sub job created by the main job
Filip
06/16/2016
















Functional Requirement


Purpose/WHY:

[Explain the purpose of the project and the reason why this requirement has come]

The IDOC creation job is failing when it encounters no file in the specified directory, thereby leading to the failure of the entire job and subsequent files do not get processed. This required setting multiple jobs for each of the files that may be on same or different directories.


In Scope:

[List the activities to be included in scope]

1. The job will process all the variants/files that it has been created with and maintained in the designated variable.
2. Fix issue caused due to bad data on the files.

Out of Scope:

[Out of scope activities]

Variants created but not maintained in the designated variable will not be processed by this job.

Solution Summary


[Discuss this section with Requester and get approval prior to beginning work]

The solution involves:


Test Plan

[List test scenarios/cases to be executed here]
Test ID
Test Scenario
Expected Results
SD001
Load single file with a single record into a directory and create a variant. Run the job
The job should pick the variant/file and create an IDOC
SD002
Load multiple files with multiple records into a directory and create a variant. Run the job
The job should pick the variants/files and IDOCs should be created
SD003
Load multiple files with single record in each into multiple directories and create variants. Run the job
The job should pick the variants/files and IDOCs should be created
SD004
Load multiple files with single record in each into multiple directories and leave one directory blank; create variants. Run the job
The job should pick the variants/files and IDOCs should be created and the job should not fail when there is no file.
SD005
Load single file with multiple records into a single directory and create multiple variants without any file in the directories. Run the job
The job shouldn't cancel where there's no file but should process the file with data and IDOCs should be created.


Solution Details


[Provide complete technical details for configuration or programming here]

1. Created a variable 'ZSD_IBM_EDI_JOB_VAR' in TVARVC table to maintain the multiple variant names
2. Developed a program 'ZSD_IBM_EDI_JOB', which reads the variants from the TVARVC variable 'ZSD_IBM_EDI_JOB_VAR' and checks the each variant whether existed for standard program 'RSEINB00', in case variant exists then program will create job for each variant in sequence

Issues


[List Issues / Bugs identified in configuration or development]